<!DOCTYPE html>
<html>
<head>
    <title>门店耗材入库表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("storeMaterialIn:storematerialin:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("storeMaterialIn:storematerialin:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("storeMaterialIn:storematerialin:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">单据号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.inNo" placeholder="单据号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">含税总金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.totalMoney" placeholder="含税总金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否含税:1.是,0.否</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.tax" placeholder="是否含税:1.是,0.否"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">入库仓库id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.stockId" placeholder="入库仓库id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">库存交易类型：1.采购入库2.红冲3.盘存10.采购退货7.调拨入库8.数据迁移</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.type" placeholder="库存交易类型：1.采购入库2.红冲3.盘存10.采购退货7.调拨入库8.数据迁移"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">库存交易方向(1增加,-1减少)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.direction" placeholder="库存交易方向(1增加,-1减少)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单据状态：1.待入库审核2.已入库3.已驳回</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.status" placeholder="单据状态：1.待入库审核2.已入库3.已驳回"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.remark" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.createName" placeholder="创建人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.createTime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">审核人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.checkName" placeholder="审核人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">审核时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.checkTime" placeholder="审核时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">采购单财务付款状态 notSubmit:待提交 examine：待审核 false:待付款 true：已付款</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.paymentStatus" placeholder="采购单财务付款状态 notSubmit:待提交 examine：待审核 false:待付款 true：已付款"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">财务付款时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.paymentDate" placeholder="财务付款时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">财务付款备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.paymentRemark" placeholder="财务付款备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">入库单据图片</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeMaterialIn.purchaseImages" placeholder="入库单据图片"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/storeMaterialIn/storematerialin.js?_${.now?long}"></script>
</body>
</html>